<script type="text/javascript" src="<?php echo bu('/ckeditor/ckeditor.js'); ?>"></script>
<script type="text/javascript" src="<?php echo bu('/ckeditor/adapters/jquery.js'); ?>"></script>

<script>
  $(function()
  {
    var config = {
      skin:'kama',
      height:300,
      linkShowAdvancedTab: false,
       toolbar_Full: [
                            ['Styles','Format','Font','FontSize'],
                            ['Bold','Italic','Underline','StrikeThrough','-','Undo','Redo','-','Cut','Copy','Paste','Find','Replace','-','Outdent','Indent','-','Print'],
                            ['NumberedList','BulletedList','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
                            ['Image','Table','-','Link', 'TextColor','BGColor','Source'],
                          ],
    };

    $('.ckeditor').ckeditor(config);
  });
</script>

<?php echo $form->errorSummary($article); ?><br />

<label>Subject <em>*</em></label>
<?php echo $form->textField($article, 'subject', array('required' => 'required')) ?>

<label>Content <em>*</em></label>
<div style="border:1px solid #FFF; float:left;">
  <?php echo $form->textArea($article, 'content', array('required' => 'required', 'style' => 'width:400px; height:300px', 'class' => 'ckeditor')); ?>
</div>

  <?php
    $arr = array('0' => 'All Members');
    foreach($members as $member){
      //$new_arr = array($member->id => $member->name);
      array_push($arr, $member->name);
    }
  ?>
<label>For <em>*</em></label>
<?php echo $form->dropDownList($article,'member_id', $arr, array('required' => 'required')); ?>
<?php echo $form->error($article,'member_id'); ?>

<div class="action">
    <button class="button button-gray" type="submit"><span class="accept"></span>OK</button>
    <button class="button button-gray" type="reset">Reset</button>
</div>